package com.hh.example.AutoWired;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 16-3-23.
 */

@Component
public class Boss {
    private Car car;
    private Home home;

    @Autowired
    public Boss(Car car, Home home) {
        this.car = car;
        this.home = home;
    }

    @Override
    public String toString() {
        return "Boss{" +
                "car=" + car +
                ", home=" + home +
                '}';
    }
}
